//
//  MovsendController.m
//  电影er
//
//  Created by dllo on 16/6/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MovsendController.h"
#import "MoviesModol.h"
#import "MovSendTableViewCell.h"
#import "MovsendController.h"
@interface MovsendController ()<UITableViewDelegate,UITableViewDataSource>


@end

@implementation MovsendController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creactTabView];
     self.navigationItem.title = self.modoll.movieName;
    self.automaticallyAdjustsScrollViewInsets = NO;
}

-(void)creactTabView{
    UITableView *tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height-130) style:UITableViewStylePlain];
    tableview.backgroundColor  = [UIColor whiteColor];
    [self.view addSubview:tableview];
    tableview.dataSource = self;
    tableview.delegate = self;
    tableview.rowHeight = 1000;
    [tableview registerClass:[MovSendTableViewCell class ] forCellReuseIdentifier:@"cell"];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    MovSendTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    cell.movModol = self.modoll;
    return cell;
}
-(NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index{
    return 800;
}












@end
